"""microerp URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from microerp.apps.salesorder import views

urlpatterns = [
    url(r'^new/$', views.new_so, name='new_so'),  # 创建销售订单
    url(r'^list/$', views.so_list, name='so_list'),  # 销售订单列表
    url(r'^detail/$', views.so_detail, name='so_detail'),  # 订单详细信息
    url(r'^analysis/$', views.analysis, name='so_analysis'),
    url(r'^api_add_so/$', views.api_add_so, name='api_add_so'),  # 添加销售订单的接口
]
